import { post, get } from "@/utils/request";

const commitPractice = (params) => post("/practice/commit", params)
const getErrorPracticesByStudentId = ({ studentId, currrent, size }) =>
  get(`/error/${studentId}/${currrent}/${size}`)
const getPracticesByKnowledgeId = ({ knowledgeId }) =>
  get(`/practice/knowledge/${knowledgeId}`)

  export {
  commitPractice,
  getErrorPracticesByStudentId,
  getPracticesByKnowledgeId,
};
